<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-affix :offset-top="0">
        <a-layout-header class="header">
          <GlobalHeader />
        </a-layout-header>
      </a-affix>
      <a-layout-content class="content">
        <!--        顶端按钮-->
        <a-float-button-group shape="circle" :style="{ right: '24px' }">
          <a-back-top :visibility-height="0" />
        </a-float-button-group>
        <router-view />
        <!--        明凡云开发中，敬请期待！-->
        <!--        {{ JSON.stringify(loginUserStore.loginUser) }}-->
      </a-layout-content>
      <GlobalFooter />
    </a-layout>
  </div>
  <!--  <div class="filly"></div>-->
</template>

<script lang="ts" setup>
import GlobalHeader from "@/components/GlobalHeader.vue";
import GlobalFooter from "@/components/GlobalFooter.vue";
//登陆状态信息
// import { useLoginUserStore } from "@/store/useLoginUserStore";
// const loginUserStore = useLoginUserStore();
//测试代码
// import { getCurrentUser } from "@/api/user";
// getCurrentUser().then((res) => {
//   console.log(res);
// });
</script>

<style scoped>
#basicLayout .header {
  padding-inline: 20px;
  margin-bottom: 16px;
  color: unset;
  background: white;
}
#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
  padding: 20px;
}
/*
 * .filly {
    height: 46px;
    }
 */
</style>
